import static org.junit.Assert.*;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;


public class CardTest {

	@Before
	public void setUp() throws Exception {
	}

	@After
	public void tearDown() throws Exception {
	}

	@Test
	public void testCompareTo1() {
		Card card1 = new Card("S", "A");
		Card card2 = new Card("D", "A");
		assertEquals("Comparing AS and AD", 0, card1.compareTo(card2));
	}
	
	@Test
	public void testCompareTo2() {
		Card card1 = new Card("H", "K");
		Card card2 = new Card("S", "3");
		assertTrue("Comparing AS and AD", 0 > card1.compareTo(card2));
	}
	
	@Test
	public void testCompareTo3() {
		Card card1 = new Card("C", "Q");
		Card card2 = new Card("H", "K");
		assertTrue("Comparing AS and AD", 0 < card1.compareTo(card2));
	}

}
